//
//  ZJProjectThemeColorFatory.m
//  Project
//
//  Created by 郑键 on 17/3/13.
//  Copyright © 2017年 zhengjian. All rights reserved.
//

#import "ZJProjectThemeColorFatory.h"

@implementation ZJProjectThemeColorFatory

+ (instancetype)projectThemeColorFatoryWithFilePath:(NSString *)filePath
{
    NSData *colorData                                       = [NSData dataWithContentsOfFile:filePath];
    NSError *error;
    NSJSONSerialization *colorJSON                          = [NSJSONSerialization JSONObjectWithData:colorData
                                                                                              options:0
                                                                                                error:&error];
    ZJProjectThemeColorFatory *themeColorFatory             = [ZJProjectThemeColorFatory modelWithJSON:colorJSON];
    return themeColorFatory;
}

- (UIColor *)color_c1
{
    if (!_color_c1) {
        _color_c1 = [UIColor colorWithHexString:self.c1];
    }
    return _color_c1;
}

- (UIColor *)color_c2
{
    if (!_color_c2) {
        _color_c2 = [UIColor colorWithHexString:self.c2];
    }
    return _color_c2;
}

- (UIColor *)color_c3
{
    if (!_color_c3) {
        _color_c3 = [UIColor colorWithHexString:self.c3];
    }
    return _color_c3;
}

- (UIColor *)color_c4
{
    if (!_color_c4) {
        _color_c4 = [UIColor colorWithHexString:self.c4];
    }
    return _color_c4;
}

- (UIColor *)color_c5
{
    if (!_color_c5) {
        _color_c5 = [UIColor colorWithHexString:self.c5];
    }
    return _color_c5;
}

- (UIColor *)color_c6
{
    if (!_color_c6) {
        _color_c6 = [UIColor colorWithHexString:self.c6];
    }
    return _color_c6;
}

- (UIColor *)color_c7
{
    if (!_color_c7) {
        _color_c7 = [UIColor colorWithHexString:self.c7];
    }
    return _color_c7;
}

- (UIColor *)color_c8
{
    if (!_color_c8) {
        _color_c8 = [UIColor colorWithHexString:self.c8];
    }
    return _color_c8;
}

@end
